{config_load file="/libs/lang.conf"}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
	{include file="$tpl_head.tpl"}
	<body>
    <div id="wrap">
    
    	<div id="header">
    		{include file=$tpl_header.".tpl"}
    	</div><!-- header end -->
    	
	{if $user_authenticated ne true}<div id="content-wrap1">
  {else}
  	{if $cat_url neq ""}<div id="content-wrap2">
  	{else}<div id="content-wrap3">
  	{/if}
  {/if}
      	
    		<div id="sidebar">
    		
    			{include file=$tpl_right_sidebar.".tpl"}
         
          
          {php}
          Global $the_template;
          ?>
          <?php
          {/php}
          			
    		</div><!-- sidebar end -->
    	
    		<div id="contentbox">
    
          {include file=$tpl_center.".tpl"}
          
    			  </div>
    			  
    		</div><!-- content end -->
    	</div><!-- content-wrap end -->      	
    </div><!-- wrap end -->
    
    			{include file=$tpl_footer.".tpl"}
    			
</body>
</html>
